package com.springboot.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author liuwei
 * @version 2017/7/14 上午1:00
 * @modified
 * @description 通过@Value("${属性名}")注解来加载对应的配置属性
 * @see
 * @since 1.0
 */
@Component
public class ProjectProperties {

    @Value("${project.name}")
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
